<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix' => config('admin.route.prefix'),
    'namespace' => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->resource('/auth/users', 'AdminUserController');
    $router->get('/dashboard', 'HomeController@index');
    $router->resource('/user', UserController::class);
    $router->resource('user-auth', 'UserAuthController');

    $router->resource('/user-asset', UserAssetController::class);
    $router->resource('/asset-log', AssetLogController::class);


    $router->resource('user-withdraw', 'UserWithdrawController'); //用户提现
    $router->resource('user-deposit', 'UserDepositController'); //用户充值
    $router->resource('user-deposit-method', 'UserDepositMethodController'); //用户充值方式


    $router->get('/content-categories/category-list', 'ContentCategoryController@categoryList');//文稿分类下拉列表
    $router->resource('contents', ContentController::class);//文稿
    $router->resource('content-categories', ContentCategoryController::class);//文稿分类
    $router->resource('user-notification', UserNotificationController::class);//消息列表



    $router->resource('tg-admin', TgAdminController::class);
    $router->resource('tg-group', TgGroupController::class);
    $router->resource('tg-channel', TgChannelController::class);
    $router->resource('tg-config', TgConfigController::class);
    $router->resource('tg-channel-balance', TgChannelBalanceController::class);
    $router->resource('tg-tasks', TgTaskController::class);//消息列表
    $router->resource('tg-transactions', TgTransactionController::class);
    $router->resource('tg-timeline', TgTimelineController::class);



    $router->get('/users/search', 'UserController@search');//查找用户
    $router->resource('user-wallet', UserWalletController::class);//钱包配置
});
